package com.grad.webstudy.model;

import java.io.Serializable;

public class Authority implements Serializable {
    private Integer id;

    private String auth;

    private Integer parentId;

    private String authDesc;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth == null ? null : auth.trim();
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getAuthDesc() {
        return authDesc;
    }

    public void setAuthDesc(String authDesc) {
        this.authDesc = authDesc == null ? null : authDesc.trim();
    }

    @Override
    public String toString() {
        return "Authority{" +
                "id=" + id +
                ", auth='" + auth + '\'' +
                ", parentId=" + parentId +
                ", authDesc='" + authDesc + '\'' +
                '}';
    }
}